#ifndef COLLECTIONBROWSER_H
#define COLLECTIONBROWSER_H

#include <QtGui/QWidget>
#include "flickcharm.h"
#include <QLabel>
#include <QVBoxLayout>
#include <QScrollArea>
#include <QPushButton>
#include <libmpd-1.0/libmpd/libmpd.h>
#include "song.h"
#include "collectionitemmodel.h"
#include "virtualkeyboard.h"
#include <QSortFilterProxyModel>

namespace Ui {
    class collectionBrowser;
}

//SHOULD WE SWITCH TO QTEXTLAYOUT ???

class collectionBrowser : public QWidget
{
    Q_OBJECT
public:
    collectionBrowser(CollectionItemModel * model, QWidget *parent = 0);
    ~collectionBrowser();

public slots:
    void insertCharacter(const QString &character);
    void clearFilter();
    void delLastCharacter();
    void itemClicked(QModelIndex index);

protected:
    void changeEvent(QEvent *e);

private:
    Ui::collectionBrowser *m_ui;
    FlickCharm * charm;
    QScrollArea * lol;
    QWidget * widget;
    QVBoxLayout * layout;
    QPixmap * pixmap;
    CollectionItemModel * model;
    QSortFilterProxyModel * filterModel;
    VirtualKeyboard * keyboard;
};

#endif // COLLECTIONBROWSER_H
